package com.jy.service;

import com.jy.common.enums.ResponseWrapper;
import com.jy.common.model.good.param.AddCartParam;
import com.jy.common.model.good.param.AddSearchGoodsHistoryParam;
import com.jy.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;


/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author fzg
 * @since 2024-11-14
 */
public interface GoodsService extends IService<Goods> {

    ResponseWrapper getGoodsIndexRecommendInfo(String type);

    ResponseWrapper getGoodsDetailInfo(Integer currentUserAid,Long goodAid);

    ResponseWrapper getThisStyleInfoApi(String style,Integer goodAid);

    ResponseWrapper cancelCollectGoods(Integer userAidByToken, Integer goodAid);

    ResponseWrapper collectGoods(Integer userAidByToken, Integer goodAid);

    ResponseWrapper addCartApi(Integer userAidByToken, AddCartParam addCartParam);

    ResponseWrapper getCurrentStyleAid(Integer goodAid, String styleName);

    ResponseWrapper getSearchResults(String searchKey,Integer selectedMenuAid);

    ResponseWrapper getsearchHistAndGuessSearchList(Integer userAidByToken);

    ResponseWrapper deleteSearchByAid(Integer userAidByToken, Integer aid);

    ResponseWrapper addSearchHistory(Integer userAidByToken, AddSearchGoodsHistoryParam param);

    ResponseWrapper deleteAllSearchHistory(Integer userAidByToken);
}
